package com.hnkywl.sts.action.xtgl;

import com.hnkywl.sts.entity.sys.Yg;
import com.hnkywl.sts.entity.xtgl.Dlrz;
import com.hnkywl.sts.service.xtgl.DlrzService;
import net.ruixin.web.struts2.SimpleActionSupport;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 13-5-8
 * Time: 下午4:07
 * To change this template use File | Settings | File Templates.
 */
@Namespace("/xtgl/dlrz")
public class DlrzAction extends SimpleActionSupport {
    private DlrzService dlrzService;
    //登录日志实例
    private Dlrz dlrz;
    //用户Id
    private Long dlrId;
    //用户姓名
    private String dlrXm;
    //登录时间
    private Date dlrq;
    //分页组件 起始位置
    private int page;
    //分页组件 页面大小
    private int rows = 10;

    @Action("dlrzList")
    public void dlrzList() {
        this.renderJson(this.dlrzService.findDlrzList(dlrId,dlrXm, dlrq, page, rows));
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getRows() {
        return rows;
    }

    public void setRows(int rows) {
        this.rows = rows;
    }

    public Dlrz getDlrz() {
        return dlrz;
    }

    public void setDlrz(Dlrz dlrz) {
        this.dlrz = dlrz;
    }

    public Long getDlrId() {
        return dlrId;
    }

    public void setDlrId(Long dlrId) {
        this.dlrId = dlrId;
    }

    public String getDlrXm() {
        return dlrXm;
    }

    public void setDlrXm(String dlrXm) {
        this.dlrXm = dlrXm;
    }

    public Date getDlrq() {
        return dlrq;
    }

    public void setDlrq(Date dlrq) {
        this.dlrq = dlrq;
    }

    @Autowired
    public void setDlrzService(DlrzService dlrzService) {
        this.dlrzService = dlrzService;
    }
}
